from pathlib import Path
from datetime import datetime

def log(content,log_file:str):
    log_file=Path(log_file)
    log_file.parent.mkdir(parents=True,exist_ok=True)
    with open(log_file,"a",encoding="utf-8") as f:
        f.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} {content}\n")